import request from '@/utils/request'
const api_name = "/subject"
export default {
    getList() {
        // 获取讲师列表数据
        return request({
            url: `${api_name}`,
            method: "get"
        })

    },
    // 添加课程分类
    addSubject(subject) {
        return request({
            url: `${api_name}`,
            method: "post",
            data: subject
        })
    },
    // 删除课程分类
    deleteSubject(subjectId) {
        return request({
            url: `${api_name}/${subjectId}`,
            method: "delete",
        })
    }
}